
import { Entity, Column } from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';

// scores: JSON.stringify(scoresObj), //字符串json
//       sceneId,
//       create_time,
//       userId: userId,
//       model: model,
@Entity({
  name: 'chat_round',
})
export class ChatRoundEntity extends Base {
  @Column({ length: 36,default:"" })
  @ApiProperty({ title: '房间名',default:"" })
  sceneId: string;

  @Column({ length: 36 })
  @ApiProperty({ title: 'userId',default:"" })
  userId: string;

  @Column({ type: 'text' })
  @ApiProperty({ title: 'scores' })
  scores: string;

  @Column({ length: 36 })
  @ApiProperty({ title: 'roomId',default:"" })
  roomId: string;

  @Column({ type: 'tinyint' })
  @ApiProperty({ title: '1、结束 2、进行中 3、未开始' })
  model: number;

  @ApiProperty({ title: '是否删除' })
  @Column({ type: Number, default: 0 })
  isDelete?: string;
}
